<div class="sm-pop">
    <div id="dialog_form" class="layui-form" lay-filter="test1">
        <input type="hidden" name="id" value="<%=id%>">


        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 姓名</label>
            <div class="layui-input-block">
                <input type="text" name="name" maxlength="100" value="<%=name%>" lay-verify="required" autocomplete="off"
                       placeholder="请输入姓名" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="email" maxlength="100" value="<%=email%>" lay-verify="required" autocomplete="off"
                       placeholder="请输入邮箱" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" maxlength="100" value="<%=phone%>" lay-verify="required" autocomplete="off"
                       placeholder="请输入电话" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 内容</label>
            <div class="layui-input-block">
                <input type="text" name="content" maxlength="500" value="<%=content%>" lay-verify="required" autocomplete="off"
                       placeholder="请输入内容" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" maxlength="200" placeholder="请输入备注"
                          class="layui-textarea"><%=remark%></textarea>
            </div>
        </div>

    </div>
</div>



<script>
    layui.use(['layedit', "upload", "form"], function () {
        var layedit = layui.layedit;
        var $ = layui.$;
        var upload = layui.upload;
        var form = layui.form;
        form.render();

        // 设置富文本上传接口
        layedit.set({
            uploadImage: {
                url: '/managerImg/uploadFile',
                type: 'post'
            },
            uploadVideo: {
                url: '/managerImg/uploadFile',
                type: 'post'
            },
            uploadAudio: {
                url: '/managerImg/uploadFile',
                type: 'post'
            },
        });
        var layeditIndex = layedit.build('content');

    });
</script>

